home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / DMO / DMODemo / wave.h < prev   
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.7 KB  |  69 lines

  1. //------------------------------------------------------------------------------
  2. // File: Wave.h
  3. //
  4. // Desc: DirectShow sample code - wave header file.
  5. //
  6. // Copyright (c) 1995-2001 Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9.  
  10. #ifndef __WAVE_INCLUDED__
  11. #define __WAVE_INCLUDED__
  12. #include <windows.h>
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #define WAVEVERSION 1
  19.  
  20. #ifndef ER_MEM
  21. #define ER_MEM                 0xe000
  22. #endif
  23.  
  24. #ifndef ER_CANNOTOPEN
  25. #define ER_CANNOTOPEN         0xe100
  26. #endif
  27.  
  28. #ifndef ER_NOTWAVEFILE
  29. #define ER_NOTWAVEFILE         0xe101
  30. #endif
  31.  
  32. #ifndef ER_CANNOTREAD
  33. #define ER_CANNOTREAD         0xe102
  34. #endif
  35.  
  36. #ifndef ER_CORRUPTWAVEFILE
  37. #define ER_CORRUPTWAVEFILE    0xe103
  38. #endif
  39.  
  40. #ifndef ER_CANNOTWRITE
  41. #define ER_CANNOTWRITE        0xe104
  42. #endif
  43.  
  44.  
  45.  
  46. int WaveOpenFile(TCHAR*, HMMIO *, WAVEFORMATEX **, MMCKINFO *);
  47. int WaveStartDataRead(HMMIO *, MMCKINFO *, MMCKINFO *);
  48. int WaveReadFile(HMMIO, UINT, BYTE *, MMCKINFO *, UINT *);
  49. int WaveCloseReadFile(HMMIO *, WAVEFORMATEX **);
  50.  
  51. int WaveCreateFile(TCHAR*, HMMIO *, WAVEFORMATEX *, MMCKINFO *, MMCKINFO *);
  52. int WaveStartDataWrite(HMMIO *, MMCKINFO *, MMIOINFO *);
  53. int WaveWriteFile(HMMIO, UINT, BYTE *, MMCKINFO *, UINT *, MMIOINFO *);
  54. int WaveCloseWriteFile(HMMIO *, MMCKINFO *, MMCKINFO *, MMIOINFO *, DWORD);
  55.  
  56. int WaveLoadFile(TCHAR*, UINT *, WAVEFORMATEX **, BYTE **);
  57. int WaveSaveFile(TCHAR*, UINT, DWORD, WAVEFORMATEX *, BYTE *);
  58.  
  59. int WaveCopyUselessChunks(HMMIO *, MMCKINFO *, MMCKINFO *, HMMIO *, MMCKINFO *, MMCKINFO *);
  60. BOOL riffCopyChunk(HMMIO, HMMIO, const LPMMCKINFO);
  61.  
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.  
  67. #endif
  68.  
  69.